fix: swap activity fee label paid by metamask#27268
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: This change affects transaction detail rendering within the bridge flow, which could impact:
There are no changes to controllers, Engine, network management, identity, snaps, card, perps, predictions, or multi-chain APIs. Therefore, other tags (SmokeWalletPlatform, SmokeNetworkAbstractions, SmokeNetworkExpansion, SmokeMultiChainAPI, SmokeAccounts, SmokeIdentity, SmokeCard, SmokePerps, SmokePredictions, FlaskBuildTests) are not required. The impact is scoped to a Trade subcomponent UI, with moderate risk because it is user-facing in a financial transaction flow. Performance Test Selection: |
|
|
✅ E2E Fixture Validation — Schema is up to date |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.



Description
Changelog
CHANGELOG entry: adds "Paid by MetaMask" on Activity "Total gas fee" row when the tx was a gas-sponsored swap.
Related issues
Fixes: #27246
Manual testing steps
Screenshots/Recordings
Before
Showing a

MONgas fee amount (zero).After
Showing the "Paid by MetaMask" label.

Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Small UI-only change gated by existing
isGasFeeSponsoredflag; low risk aside from potential styling/layout regressions in the transaction details view.Overview
Updates the Bridge/Swap transaction details screen to display a green
Paid by MetaMasktag in the Total gas fee row whenevmTxMeta.isGasFeeSponsoredis true, instead of showing a (typically zero) native gas amount.Introduces a small reusable
PaidByMetaMaskcomponent usingTagColored(withtestID: paid-by-metamask) and keeps the prior fee amount rendering for non-sponsored transactions.Written by Cursor Bugbot for commit 12125cd. This will update automatically on new commits. Configure here.